package com.xdjd.mobile.business.entity.param.my;

import com.gitee.easyopen.doc.annotation.ApiDocField;
import org.hibernate.validator.constraints.NotEmpty;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

public class LoginParam{
    private String userId;
    @ApiDocField(description = "用户名", required = true)
    @NotEmpty(message = "用户名不能为空")
    private String userName;
    private String loginPwd;

    private String device;

    private Byte source;//来源（0：ios，1：android，2：h5）

    @ApiDocField(description = "短信验证码", required = true)
    @NotEmpty(message = "短信验证码不能为空")
    private String smsCode;

    @ApiDocField(description = "登录类型(1:密码 ; 2:短信验证码)", required = true)
    @NotEmpty(message = "登录类型不能为空")
    private String loginType;

    @ApiDocField(description = "步数", required = true)
    @NotNull(message = "步数不能为空")
    private Long stepNumber;

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getLoginPwd() {
        return loginPwd;
    }

    public void setLoginPwd(String loginPwd) {
        this.loginPwd = loginPwd;
    }

    public String getSmsCode() {
        return smsCode;
    }

    public void setSmsCode(String smsCode) {
        this.smsCode = smsCode;
    }

    public String getLoginType() {
        return loginType;
    }

    public void setLoginType(String loginType) {
        this.loginType = loginType;
    }

    public String getDevice() {
        return device;
    }

    public void setDevice(String device) {
        this.device = device;
    }

    public Byte getSource() {
        return source;
    }

    public void setSource(Byte source) {
        this.source = source;
    }

    public Long getStepNumber() {
        return stepNumber;
    }

    public void setStepNumber(Long stepNumber) {
        this.stepNumber = stepNumber;
    }
}
